package com.dlut.txy.designpattern.schedule.task;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

@EqualsAndHashCode
public class ScheduleTaskParam {
    private Map<String, Object> params = new HashMap<>();

    public ScheduleTaskParam addParam(String key, Object value) {
        params.put(key, value);
        return this;
    }
    public Object getParam(String key) {
        return params.get(key);
    }

    public Map<String, Object> getParams() {
        return params;
    }

    public static class Key implements Serializable {
        public static final String userBid = "userBid";
        public static final String qrcodeBid = "qrcodeBid";
    }
}
